package com.xy.iot.netty.channel;


import com.xy.iot.netty.device.BaseControlCentre;
import com.xy.iot.netty.service.MappingsImpl;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 *  分组通讯通道
 */
public class BaseChannelGroup extends MappingsImpl<BaseChannel> implements BaseControlCentre {
	/**
	 * 默认构造函数,支持线程安全
	 */
	public BaseChannelGroup(){
		super(new ConcurrentHashMap<>());
	}

	@Override
	public List<BaseChannel> groups() {
		return list();
	}
}
